<?php $this->load->view("general/header");?>
<div id="personal_detail" class="page_">
    <div class="form">              
        <div class="form_header"><a href="<?php echo site_url("admin/user/karyawan");?>">Daftar Pegawai</a> &rarr; Rubah data Untuk <?php echo $detail['name'];?></div>
        
        <div class="content_data">
        <form method="post" action="<?php echo site_url("admin/user/edit/" . $detail['user_id']);?>">
        	<div class="row">
            	<div class="col1">Username</div>
                <div class="col2"><?php echo $detail['username'];?></div>
			</div>
        	<div class="row">
            	<div class="col1">Name</div>
                <div class="col2"><input type="text" name="name" value="<?php echo set_value("name",$detail['name']);?>" /> 
                	<div class="errorField"><?php echo form_error("name");?></div>
                </div>
			</div>
        	<div class="row">
            	<div class="col1">Email</div>
                <div class="col2"><input type="text" name="email" value="<?php echo set_value("email",$detail['email']);?>" /> 
                	<div class="errorField"><?php echo form_error("email");?></div>
                </div>
			</div>
        	<div class="row">
            	<div class="col1">Phone</div>
                <div class="col2"><input type="text" name="phone" value="<?php echo set_value("phone",$detail['phone']);?>" /> 
                	<div class="errorField"><?php echo form_error("phone");?></div>
                </div>
			</div>
        	<div class="row">
            	<div class="col1">Address</div>
                <div class="col2"><textarea name="address"><?php echo set_value("address",$detail['address']);?></textarea>
                	<div class="errorField"><?php echo form_error("address");?></div>
                </div>
			</div>
            <div class="row">
            	<div class="col1">Member since</div>
                <div class="col2"><?php echo $detail['member_since'];?></div>
			</div>
            <div class="title">
            	<input type="submit" name="btnSave" value="Save" class="button_red" />
            </div>
            <div class="success"><?php echo (isset($success))?$success:"&nbsp;";?></div>
        </form>
        </div>
        
    </div>
</div>
<?php $this->load->view("general/footer");?>